﻿using Cordyceps.Micro.Elastic.Options;
using Elastic.Clients.Elasticsearch;

namespace Cordyceps.Micro.Elastic;

/// <summary>
///     Elasticsearch 客户端工厂接口
/// </summary>
public interface IElasticsearchClientFactory
{
    /// <summary>
    ///     创建Elasticsearch客户端实例
    /// </summary>
    ElasticsearchClient CreateClient(ElasticsearchOptions options);

    /// <summary>
    ///     使用默认配置创建Elasticsearch客户端实例
    /// </summary>
    ElasticsearchClient CreateClient();
}